package com.yenlien.traceyun.plant.entity;

import com.yenlien.traceyun.webase.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Date 2022/7/18
 * @Author jiaLong
 * @Descript 长武县智慧果园
 */
@Data
@Entity
@Table(name = "t_alarm")
public class Alarm extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -5152963930027455032L;

    private String reason;      // 报警原因    1=温度过低   2=温度过高
    private String time;       // 报警时间
    private String type;       // 报警类型  空气温度/土壤温度



    private String num;       // 报警所在地块  改成  设备名称
    private String fType;       //  属于哪一个果园或者companyId  cw=长武   sf=三丰



    public Alarm() {
    }

    public Alarm(String reason, String time, String type, String num, String fType) {
        this.reason = reason;
        this.time = time;
        this.type = type;
        this.num = num;
        this.fType = fType;
    }
}
